import instance from '../utils/request'

/*分页获取入库列表*/
export function getGoodsInList(current,size,audit,queryMap) {
  return instance({
    url: '/goods-in/getGoodsInList',
    method: 'POST',
    params:{
      current,
      size,
      audit
    },
    data: queryMap
  })
}

export function getDetail(id,pageNum) {
  return instance({
    url: '/goods-in/getDetail',
    method: 'GET',
    params:{
      id,
      pageNum
    }
  })
}

/**
 *入库审核
 */
export function getApprove(id) {
  return instance({
    url: '/goods-in/getApprove',
    method: 'GET',
    params:{
      id
    }
  })
}

/**
 *添加入库
 */
export function add(queryMap) {
  return instance({
    url: '/goods-in/add',
    method: 'POST',
    data: queryMap
  })
}
